package cn.sczc.jh.client.mapper.sensorHistroy;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.sczc.jh.client.entity.SensorHistory;

public interface SensorHistoryMapper extends BaseMapper<SensorHistory> {

	List<SensorHistory> select(Map<String, Object> params);

	List<SensorHistory> selectByHistoryParamsByPage(Page<SensorHistory> page,@Param("params") Map<String, Object> params);

	List<SensorHistory> selectByHistoryParams(Map<String, Object> params);

	Date selectLastDate();

	List<String> selectSensorAddressList();

	List<SensorHistory> getSynchSensorData(Map<String, Object> params);

	void updateUploadStateByIds(@Param("ids")List<String> ids);

	int getSynchSensorDataCount(Map<String, Object> params);

}
